﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="category_bottomMenu_list.aspx.cs" Inherits="MxWeiXinPF.Web.admin.article.category_bottomMenu_list" %>

<%@ Import Namespace="MxWeiXinPF.Common" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>底部菜单管理</title>
    <%=PageJSAndStype("list").ToString() %>

    <style type="text/css">
        .tree-list .col-1 {
            width: 6%;
            text-align: center;
        }

        .tree-list .col-2 {
            width: 6%;
        }

        .tree-list .col-3 {
            width: 30%;
        }

        .tree-list .col-4 {
            width: 12%;
        }

        .tree-list .col-5 {
            width: 22%;
        }

        .tree-list .col-6 {
            width: 12%;
            text-align: center;
        }

        .tree-list .col-7 {
            width: 12%;
            text-align: center;
        }

        .wxico_container img {
            background-color: #A0B4DC;
            width: 20px;
            height: 20px;
        }
    </style>
    <script type="text/javascript">
        $(function () {

            initCategoryHtml('.tree-list', 1); //初始化分类的结构
            $('.tree-list').initCategoryTree(true); //初始化分类的事件

        })

    </script>

</head>

<body class="mainbody">
    <form id="form1" runat="server">


        <!--tab-->
        <div id="floatHead2" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a class="selected">底部菜单管理</a></li>
                        <li><a href="../templates/template_bottom_list.aspx">底部菜单风格</a></li>

                    </ul>
                </div>
            </div>
        </div>

        <!--/tab-->


        <!--工具栏-->

        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <a class="menu-btn"></a>

                    <div class="l-list">
                        <ul class="icon-list">
                            <li><a class="add" href="category_bottomMenu_edit.aspx?action=<%=MXEnums.ActionEnum.Add %>&channel_id=<%=this.channel_id %>"><i class="iconfont icon-close"></i><span>新增菜单</span></a></li>
                            <li>
                                <asp:LinkButton ID="btnSave" runat="server" CssClass="save" OnClick="btnSave_Click"><i   class="iconfont icon-save"></i><span>保存</span></asp:LinkButton></li>
                            <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i class="iconfont icon-check"></i><span>全选</span></a></li>
                            <li>
                                <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete','本操作会删除本类别及下属子类别，是否继续？');" OnClick="btnDelete_Click"><i class="iconfont icon-delete"></i><span>删除</span></asp:LinkButton></li>

                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->

        <div class="table-container">
            <div class="tree-list">
                <div class="thead">
                    <div class="col col-1">选择</div>
                    <div class="col col-2">编号</div>
                    <div class="col col-3">类别名称</div>
                    <div class="col col-4">图标</div>
                    <div class="col col-5">访问地址</div>
                    <div class="col col-6">排序</div>
                    <div class="col col-7">操作</div>
                </div>
                <ul>

                    <asp:Repeater ID="rptList" runat="server" OnItemDataBound="rptList_ItemDataBound">

                        <ItemTemplate>

                            <li class="layer-<%#Eval("class_layer")%>">
                                <div class="tbody">

                                    <div class="col col-1">
                                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                                        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                                        <asp:HiddenField ID="hidLayer" Value='<%#Eval("class_layer") %>' runat="server" />
                                    </div>

                                    <div class="col col-2"><%#Eval("id")%></div>
                                    <div class="col index col-3">
                                        <asp:Literal ID="LitFirst" runat="server"></asp:Literal>
                                        <a href="category_bottomMenu_edit.aspx?action=<%#MXEnums.ActionEnum.Edit %>&channel_id=<%#this.channel_id %>&id=<%#Eval("id")%>"><%#Eval("title")%></a>
                                    </div>
                                    <div class="col col-4">
                                        <div class="wxico_container">
                                            <asp:Literal ID="litImgInfo" runat="server" Text='<%#Eval("ico_url")%>'></asp:Literal>
                                        </div>
                                    </div>
                                    <div class="col col-5">
                                        <%#Eval("link_url")%>
                                    </div>

                                    <div class="col col-6">
                                        <asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort_id")%>' CssClass="sort" onkeydown="return checkNumber(event);" />
                                    </div>
                                    <div class="col col-7">
                                        <a href="category_bottomMenu_edit.aspx?action=<%#MXEnums.ActionEnum.Add %>&channel_id=<%#this.channel_id %>&id=<%#Eval("id")%>">添加子类</a>
                                        <a href="category_bottomMenu_edit.aspx?action=<%#MXEnums.ActionEnum.Edit %>&channel_id=<%#this.channel_id %>&id=<%#Eval("id")%>">修改</a>
                                    </div>


                                </div>
                            </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            <%#rptList.Items.Count == 0 ? "<li class='col_nodata'><div align=\"center\">暂无记录</div></li>" : ""%>
                        </FooterTemplate>
                    </asp:Repeater>


                </ul>
            </div>
        </div>

        <!--/列表-->
    </form>
</body>
</html>
